<!DOCTYPE html>
<html>
<head>
	<title>jsonp</title>
	<meta charset="utf-8" />
</head>
<body>
	<button onclick="getJsonP()">点击</button>
</body>
</html>
<script type="text/javascript">
	//script跨域尝试
	//script被引入，而且显示请求结果
	function createScript(){
		let js=document.createElement('script'),body=document.body;
		js.setAttribute('src','https://www.baidu.com?callback=jsonpcallback');
		body.append(js);
		console.log(body,js);
	}
	function getJsonP(){
		createScript();
	}
</script>
<!-- <script type="text/javascript" src="http://vapi.vcanbuy.com:8083/gateway/installer/installer_acct/get_number_by_uid"></script> -->